package com.v5ba.controller;

import com.v5ba.service.UserService;
import com.v5ba.service.impl.RequiredService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private UserService userService;
    @Autowired
    private RequiredService requiredService;

    @GetMapping("noTx")
    public String noTx(){
        userService.noTx();
        return "ok";
    }
    @GetMapping("update")
    public String update(){
        //userService.update1();
        requiredService.update1();
        return "ok";
    }
}
